<?php
namespace BP\GPM;
require_once("BP/En/Map.php");
class EmpMenu extends EntityMM {
	public function getFK_Emp () 
	{
		return $this->GetValStringByKey(EmpMenuAttr::$FK_Emp);
	}
	public function setFK_Emp ($value) // [String value]
	{
		$this->SetValByKey(EmpMenuAttr::$FK_Emp, $value);
	}
	public function getFK_Menu () 
	{
		return $this->GetValStringByKey(EmpMenuAttr::$FK_Menu);
	}
	public function setFK_Menu ($value) // [String value]
	{
		$this->SetValByKey(EmpMenuAttr::$FK_Menu, $value);
	}
	public function getFK_App () 
	{
		return $this->GetValStringByKey(MenuAttr::$FK_App);
	}
	public function setFK_App ($value) // [String value]
	{
		$this->SetValByKey(MenuAttr::$FK_App, $value);
	}
	public function getIsChecked () 
	{
		return $this->GetValBooleanByKey(EmpMenuAttr::$IsChecked);
	}
	public function setIsChecked ($value) // [boolean value]
	{
		$this->SetValByKey(EmpMenuAttr::$IsChecked, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("GPM_EmpMenu");
		$map->setDepositaryOfEntity($Depositary->None);
		$map->setDepositaryOfMap($Depositary->Application);
		$map->setEnDesc("人员菜单对应");
		$map->setEnType($EnType->App);
		$map->AddTBStringPK(EmpMenuAttr::$FK_Menu, NULL, "菜单",  FALSE ,  FALSE , 0, 50, 20);
		$map->AddDDLEntitiesPK(EmpMenuAttr::$FK_Emp, NULL, "菜单功能", Emps::constructor__(),  TRUE );
		$map->AddBoolean(EmpMenuAttr::$IsChecked,  TRUE , "是否选中",  TRUE ,  TRUE );
		$this->set_enMap($map);
		return $this->get_enMap();
	}
}
?>
